package model

type ParseLog struct {
	Id        int    `json:"id" gorm:"primary_key;autoIncrement:true"`
	ShortUrl  string `json:"shortUrl" gorm:"column:short_url;comment:短视频链接;type:varchar(128);size:128;"`
	VideoUrl  string `json:"videoUrl" gorm:"column:video_url;comment:视频地址;type:varchar(2048);size:2048;" `
	ImageUrl  string `json:"imageUrl" gorm:"column:image_url;comment:封面地址;type:varchar(2048);size:2048;"`
	HostAddr  string `json:"hostAddr" gorm:"column:host_addr;comment:host;type:varchar(128);size:128;"`
	Title     string `json:"title" gorm:"column:title;comment:视频标题;type:varchar(128);size:128;"`
	VideoTag  string `json:"videoTag" gorm:"column:video_tag;comment:视频标签;type:varchar(256);size:256;"`
	SeoInfo   string `json:"seoInfo" gorm:"column:seo_info;comment:seo;type:text"`
	Username  string `json:"username" gorm:"column:username;comment:用户名;type:varchar(64);size:64;"`
	ParseTime string `json:"parseTime" gorm:"column:parse_time;comment:解析时间;type:varchar(20);size:20;"`
}

func (ParseLog) TableName() string {
	return "parse_logs"
}
